<%@page import="com.cn.dao.DoctorDao"%>
<%@page import="com.cn.entity.Doctor"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>
<% DoctorDao dd=new DoctorDao(); 
List<Doctor> list=dd.scanAll();
%>
<table>
<tr>
<td>医生编号</td>
<td>用户名</td>
<td>密码</td>
<td>真实姓名</td>
<td>电话</td>
<td>身份证号</td>
<td>E_mail</td>
<td>权限</td>
<td>操作</td>

</tr>
<%for (int i=0;i<list.size();i++) { 
Doctor us=list.get(i);
%>
<tr> 
<td><%=us.getDoctorno() %></td>
<td><%=us.getDoctorname() %></td>
<td><%=us.getPassword() %></td>
<td><%=us.getXingming() %></td>
<td><%=us.getPhone() %></td>
<td><%=us.getIdentity() %></td>
<td><%=us.getEmail() %></td>
<td><%=us.getPro() %></td>     

<td><a href="DoctorDeleteAction?doctorid=<%=us.getDoctorid()%>">删除</a>|<a href="doctorupdate.jsp?doctorid=<%=us.getDoctorid()%>">修改</a>
|<a href="doctordetail.jsp?doctorid=<%=us.getDoctorid()%>">查看详细</a>
</td>

  </tr>

<%} %>
</table>
</body>
</html>